package com.lq.ecoldchain.ui.main.home

import android.databinding.DataBindingUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lq.ecoldchain.R
import com.lq.ecoldchain.databinding.ItemSystemRecommendBinding
import com.lq.ecoldchain.entity.RecommendOrder

/*
*2019/1/11 0011  14:35
*function by lq
*/
class HomeRecommendAdapter(list:List<RecommendOrder>):BaseQuickAdapter<RecommendOrder,BaseViewHolder>(R.layout.item_system_recommend,list){
    override fun convert(helper: BaseViewHolder?, item: RecommendOrder?) {
        val binding = DataBindingUtil.bind<ItemSystemRecommendBinding>(helper!!.itemView)
        binding!!.bean = item
        binding.executePendingBindings()
        helper.addOnClickListener(R.id.homeItemOrderTv)
    }

}